package com.qitancai.huazistudentmanagement.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * @ClassName Student
 * @Description 学生实体类
 * @Author 
 * @Date 2021年06月22日 1:09
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "student_caiqitan")
public class Student {
    /**
     * 学号
     **/
    @Id
    private String id;

    /**
     * 姓名
     **/
    @Column(name = "name")
    private String name;

    /**
     * 性别
     **/
    @Column(name = "sex")
    private String sex;

    /**
     * 班级
     **/
    @Column(name = "class_name")
    private String className;
}
